package com.yunshan.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 小程序端余额明细订单
 * @author admin001
 */
@Data
public class OrderUniVo {

    /** id */
    private Long id;

    /** 类型 */
    @ApiModelProperty("类型 1.消费 2.充值")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer type;

    @ApiModelProperty("1.主卡 2.副卡")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer cardType;

    /** 金额 */
    @ApiModelProperty("金额")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String amount;

    /** 消费项目 */
    @ApiModelProperty("消费项目")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String serveName;

    /** 服务类型 */
    @ApiModelProperty("服务类型")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String serveType;

    /** 使用人员 */
    @ApiModelProperty("使用人员")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String memberName;

    /** 订单号 */
    @ApiModelProperty("订单号")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String orderNum;

    /** 订单时间 */
    @ApiModelProperty("订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date orderTime;

    /** 余额 */
    @ApiModelProperty("余额")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String balance;
}
